<style>
    #edit-title{
        width:100%;
        text-align:center;
        background-color: #5e87b0;
        height:30px;
        color:#ffffff;
        line-height:30px;
    }
    #edit-content{
        background-color:#ffffff;
        margin-left:0;
        margin-right:0;
    }
    .ngdialog.ngdialog-theme-default .ngdialog-content{
        width:40%!important;
    }
    #time-picker{
        margin-top:20px;
    }
    .btn-active{
        background-color:#0be386;
    }
    .edit-element{
        border-bottom: solid 1px #CCCCCC;
        height:40px;
        line-height:40px;
    }
    #edit-select-content{
        height:460px;
        overflow-x:hidden;
        overflow-y:auto;
    }
</style>
<div id="editTag" class="ngdialog ngdialog-theme-default ng-scope" role="alertdialog">
    <div class="ngdialog-overlay">
    </div>
    <div class="ngdialog-content" role="document" style="padding:0 0 0 0">
        <div id="edit-title">
            <div class="col-md-10" style="text-align: center">
                <h4>修改标签</h4>
            </div>
            <div class="col-md-2" style="text-align: right">
                <p ng-click="cancel()" style="">关闭</p>
            </div>
        </div>
        <div style="width:100%;padding:1em" class="row" id="edit-content">
            <div id="edit-select-content">
                <div ng-repeat="item in allTagSet">
                    <div>
                        <h4>{{item.name}}</h4>
                    </div>
                    <div class="col-md-12">
                        <div class="col-md-4" ng-repeat="x in item.tagList">
                            <button class="{{x.$$checked?'btn btn-info':'btn btn-default'}}" style="line-height: 1;margin-right: 15px" ng-click="x.$$checked=!x.$$checked">{{x.name}}</button>
                        </div>
                    </div>
                    <div class="col-md-12" style="height: 20px;"></div>
                </div>
                <div class="col-md-12" style="height: 20px;"></div>
                <div style="text-align: center">
                    <button class="btn btn-success" ng-click="save()">保存</button>
                </div>
            </div>
        </div>
    </div>
</div>